package com.itheima.stock.mapper;

import com.itheima.stock.domain.Stock4EvrDayDomain;
import com.itheima.stock.domain.Stock4MinuteDomain;
import com.itheima.stock.domain.StockUpdownDomain;
import com.itheima.stock.entity.StockRtInfo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author fantuan
* @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
* @createDate 2025-11-07 20:42:37
* @Entity com.itheima.stock.entity.StockRtInfo
*/
public interface StockRtInfoMapper {

    List<StockUpdownDomain> stockIncreaseLimit(Date curDateTime);

    List<StockUpdownDomain> stockAll();

    List<Map> upDownCount(@Param("avlDate") LocalDateTime curTime,@Param("openDate") LocalDateTime openTime,@Param("flag") int flag);

    List<Map> stockUpDownScopeCount(Date avlDate);

    List<Stock4MinuteDomain> stockScreenTimeSharing(@Param("stockCode") String code, @Param("startDate") Date avlDate, @Param("endtDate") Date endDate);

    List<Stock4EvrDayDomain> getStockCreenDkLineData(@Param("code") String code, @Param("dates") List<Date> dates);

    List<Date> getCloseDates(@Param("code") String code, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
}




